package de.hhbk.feedbackmodul.sessionbeans;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import de.hhbk.feedbackmodul.daointerfaces.ParticipantDaoIF;
import de.hhbk.feedbackmodul.entities.Participant;
import de.hhbk.feedbackmodul.remoteInterfaces.ParticipantRemoteIF;

@Stateless
public class ParticipantSessionBean implements ParticipantRemoteIF {

	@EJB
	private ParticipantDaoIF dao;
	
	@Override
	public List<Participant> getAllParticipants() throws Exception {
		return dao.getAllParticipants();
	}

	@Override
	public void createParticipant(Participant participant) throws Exception {
		dao.createParticipant(participant);

	}

	@Override
	public void updateParticipant(Participant participant) throws Exception {
		dao.updateParticipant(participant);

	}

	@Override
	public void deleteParticipant(Participant participant) throws Exception {
		dao.deleteParticipant(participant);
		
	}

}
